<?php
abstract class LabelledRenderable extends Renderable implements LabelledElement {
	
	protected $labelText;
	protected $inlineLabel;
	protected $labelVisibility;
	
	public function __construct($elementId, $labelText) {
		
		parent::__construct($elementId);
		
		$this->labelText = $labelText;
		$this->inlineLabel = Label::$labelStacked;
		$this->labelVisibility = Label::$labelVisible;
	}
	
	public function setLabelVisibility($labelVisibility) {
	
		$this->labelVisibility = $labelVisibility;
	}
	
	public function setInlineLabel($inlineLabel) {
	
		$this->inlineLabel = $inlineLabel;
	}
	
	public function getLabelVisibility() {
		
		return $this->labelVisibility;
	}
	
	public function getInlineLabel() {
		
		return $this->inlineLabel;
	}
}
?>